﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace SilkeyERP.UI.Entities.Shared
{
    public partial class CustomerChooser : BaseChooser
    {
        public CustomerChooser()
        {
            InitializeComponent();
        }

        protected override void OnLoad()
        {
            this.Text = Properties.Resources.CustomerChooserTitleForm;
            base.OnLoad();

            bsBaseChooser.DataSource = new BL.CustomerController().GetAll();
            taxFigureBindingSource.DataSource = new BL.TaxFigureController().GetAll();
            cityBindingSource.DataSource = new BL.CityController().GetAll();
            customerTypeBindingSource.DataSource = new BL.CustomerTypeController().GetAll();
            salesPriceListBindingSource.DataSource = new BL.SalesPriceListController().GetAll();
            paymentMethodBindingSource.DataSource = new BL.PaymentMethodController().GetAll();
        }

    }
}